<template>
	<view style="margin-top: 2rem;">
		<!-- <button @click="int">点击链接WebSocket</button>
		<button @click="intgo">点击发送消息</button> -->
		暂时没内容--如果有好的意见请发送至 431742390@qq.com
		</view>
</template>

<script>
	import { logs } from '@/request/setarticle.js'
	import websocketManager  from '@/websocketService.js'
	export default {
				methods: {
					int(){
						try{
							websocketManager.init(`ws://192.168.31.95:8081?${this.$store.state.id}`);
						}catch(err){
							 logs(`websoket连接报错${err}`)
						}
						
					},
					intgo(){
						try{
								websocketManager.send("测试websoket发送数据");	
						}catch(err){
							 logs(`测试websoket发送数据${err}`)
						}
					}
				}
	}
</script>

<style>
</style>